import Layout from '../views/layout/index.vue';

const dynamicRouters = [
  {
    path: '/',
    component: Layout,
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import(/* webpackChunkName: "home" */ '../views/home/index.vue'),
        meta: {
          title: '首页',
          icon: 'iconshouye'
        }
      },
      {
        path: '/userManage',
        name: 'userManage',
        component: () => import(/* webpackChunkName: "userManage" */ '../views/systemManage/userManage/index.vue'),
        meta: {
          title: '用户管理',
          icon: 'iconyonghuguanli'
        }
      }
    ]
  }
];

export default dynamicRouters;
